/**
 * banner相关接口 
 */
var request = require('./request.js');

module.exports = {
    /**
     * 获取banner区图片
     * @param bannerType 展示区类型:HOME(首页区)/MEAL(点餐区)/NEWMEMBERADSENSE(新会员注册广告)/PROMOTIONADSENSE(促销广告)/抢购广告GRABADSENSE
     */
    getBannerList: function (bannerType) {
        var params = {
            bannerType: bannerType
        }
        return request.get('/mall/banner/getBannerList', params)
    },
    /**
     * 获取广告图片
     */
    getAdsenseList: function (storeId) {
        var params = {
            storeId: storeId
        }
        return request.get('/mall/adsense/getAdsenseList', params)
    },
}